package com.lemonfish.pojo.vo;

import com.diboot.core.binding.annotation.*;
import com.lemonfish.pojo.entity.GoodsCate;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.List;
import com.lemonfish.pojo.entity.GoodsParam;

/**
 * 商品分类 VO定义
 * @author Lemonfish
 * @version 1.0
 * @date 2020-03-07
 * Copyright © Chao Zhang
 */
@Getter
@Setter
@Accessors(chain = true)
public class GoodsCateVO extends GoodsCate {

    private static final long serialVersionUID = -9068102444186141739L;

    // 通过中间表的多-多Entity实体关联
    @BindEntityList(entity = GoodsParam.class, condition = "this.id=goods_cate_goods_param.goods_cate_id AND goods_cate_goods_param.goods_param_id=id AND goods_cate_goods_param.is_deleted=0")
    private List<GoodsParam> goodsparamList;
}
